﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    class Add:Calculate
    {
        public int sum { get; set; }
        public override void Cal() 
        {
            sum = A + B;

            Console.WriteLine("{0} + {1} = {2}",A,B,sum);
        }
             
    }
}
